package com.study.it.xw.entity;

import java.util.Date;

public class Comment {
    private int id;
    private int weiBoId;
    private int userId;
    private String content;
    private Date createtime;

    //外键字段，显示评论时候经常需要显示姓名，在sql语句中join进来
    private String userNickName;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getWeiBoId() {
        return weiBoId;
    }

    public void setWeiBoId(int weiBoId) {
        this.weiBoId = weiBoId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", weiBoId=" + weiBoId +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", createtime=" + createtime +
                ", userNickName='" + userNickName + '\'' +
                '}';
    }
}
